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