title: Check if a string is blank or doesn't exist in Scala
body: <p>I have an <code>Option[String]</code>. </p>
  
  <p>I want to check if there is a string exists and if it's exists its not blank. </p>
  
  <pre><code>def isBlank( input : Option[String]) : Boolean = 
  { 
       input.isEmpty || 
       input.filter(_.trim.length &gt; 0).isEmpty 
  }
  </code></pre>
  
  <p>Is there is a better way of doing this in Scala ? </p>