Eloquent collection: counting and detecting is empty or not

When using ->get() you cannot simply use any of the below:


if (empty($result)) { }
if (!$result) { }
if ($result) { }

Because if we dd($result); we will notice an instance of Illuminate\Support\Collection is always returned.

So to determine is there any result, we can use anyone of following:
if ($result->first()) { } 
if (!$result->isEmpty()) { }
if ($result->count()) { }
if (count($result)) { }