laravel is not empty collection code example Example: collection empty laravel $isempty = $collection->isEmpty();