fd22b0bf58
V2 (Laravel re-make)
306 B
306 B
isEmpty()
The isEmpty method returns true if the collection is empty; otherwise, false is returned:
collect().isEmpty();
// true
collect([]).isEmpty();
// true
collect({}).isEmpty();
// true