Future<bool> isOkAnd(FutureOr<bool> Function(S) fn) { return then((result) { if (result.isOk()) { return fn(result.unwrap()); } else { return false; } }); }