collection empty laravel

PHP
$isempty = $collection->isEmpty();
Source

Also in PHP: