replace map(bool).getOrElse(false) with exists(bool)

Constructs like Option.map(x => Boolean).getOrElse(false) can be replaced with Option.exists(x => Boolean)