isNullOrBlank

fun isNullOrBlank(reference: String?): Boolean

Checks if the string is null or only contains whitespace characters. This will call String.trim to ascertain whether the string contains only whitespace.