ifValid

open fun <R> ifValid(consumer: (T) -> R): Optional<out R>