@hungerAug 31.2022 — #you can use the isEmpty() method which returns true if the collection is empty if($collection->isEmpty()) { // $collection is empty }
more information on this can be foudn here https://laravel.com/docs/9.x/collections#method-isempty