run If

inline fun <T, R> T.runIf(condition: Boolean = true, noinline block: T.() -> R): R?