isNullOrEmpty

fun isNullOrEmpty(text: CharSequence?): Boolean

Returns true if the string is null, or empty (once trimmed).

fun isNullOrEmpty(json: JSONObject?): Boolean