What you should do is check using exists. Like so:
myOption.exists(_.trim.nonEmpty)
which will return True if and only if the Option[String] is not None and not empty.
What you should do is check using exists. Like so:
myOption.exists(_.trim.nonEmpty)
which will return True if and only if the Option[String] is not None and not empty.