Add none(f) function to Optional<T>