The isNotEmpty method returns true if the collection is not empty; otherwise, false is returned:
isNotEmpty
true
false
collect([])->isNotEmpty(); // false