Checks if the Option contains a value.
bool isSomeAnd(bool Function(T value) predicate) { if (this is Some<T>) { final value = (this as Some<T>).value; return predicate(value); } return false; }