maybeSomething match { case Some(x) => true case None => false }
maybeSomething.getOrElse(false) Short code and readable