isEmpty

fun <A> A?.isEmpty():Boolean

Checks if the values is left value or not.

Example usage:

val myVal: Int = null
if(myVal.isEmpty()) {
  // code
}

Receiver will be used as the value for identification.

Return True if the value is null