Returns true if the option is a Some and the value inside of it matches a predicate.
bool isSomeAnd(bool Function(T) f) { if (v == null) { return false; } else { return f(v!); } }