doOnlyWhenNotNull

inline fun <T, A> doOnlyWhenNotNull(    thing: T?,     value: A,     crossinline f: (T) -> ContSeq<A>): ContSeq<A>

Execute a side effect only when some condition holds.