Return true if this option is nonempty and the predicate returns true Otherwise return false
true
false
bool exists(bool Function(A a) predicate) => (this.isDefined && predicate((this as Some).value)) ? true : false;