isNotEmpty
fun ByteArray.isNotEmpty(): Booleanfun ShortArray.isNotEmpty(): Booleanfun IntArray.isNotEmpty(): Booleanfun LongArray.isNotEmpty(): Booleanfun FloatArray.isNotEmpty(): Booleanfun DoubleArray.isNotEmpty(): Booleanfun BooleanArray.isNotEmpty(): Booleanfun CharArray.isNotEmpty(): BooleanReturns true if the array is not empty.
fun <T> Collection<T>.isNotEmpty(): BooleanReturns true if the collection is not empty.
import kotlin.test.*
fun main(args: Array<String>) {
//sampleStart
val empty = emptyList<Any>()
println("empty.isNotEmpty() is ${empty.isNotEmpty()}") // false
val collection = listOf('a', 'b', 'c')
println("collection.isNotEmpty() is ${collection.isNotEmpty()}") // true
//sampleEnd
}