letIf

inline fun <T, R> T.letIf(condition: Boolean, block: (T) -> R): R?