title: Pattern Matching to check if string is null or empty
body: <p>Is it possible to check if string is null or empty using match?</p>
  
  <p>I'm trying to do something like:</p>
  
  <pre><code>def sendToYahoo(message:Email) ={
    val clientConfiguration = new ClientService().getClientConfiguration()
    val messageId : Seq[Char] = message.identifier
    messageId match {
      case messageId.isEmpty =&gt; validate()
      case !messageId.isEmpty =&gt; //blabla
    }
  }
  </code></pre>
  
  <p>But i have a compile error.</p>
  
  <p>Thank in advance.</p>