Is it possible to add null check in if

There has been a discussion about the idom for nullable boolean checks here.
Also the official guidelines say that you should prefer using someNullableBoolean == true or someNulullableBoolean == false over the elvis operator.
https://kotlinlang.org/docs/reference/idioms.html#consuming-a-nullable-boolean