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