orFalse

fun Boolean?.orFalse(defaultValue: Boolean = false): Boolean

Returns this value, or defaultValue when it is null.