Laravel - Collections - Method Isnotempty

The isNotEmpty method returns true if the collection is not empty; otherwise, false is returned:

    
    collect([])->isNotEmpty();
    
    // false