In Kotlin , one of the option is the safe call operator, written with ?.
?.
var b: String? = null
println(b?.length)
Prints b.lenght if b is not null, otherwise prints null.
b.lenght
b