Need to check if an object is empty in laravel : <p>I create a view by doing an eloquent query and then pass it over to Blade.</p>

<pre><code>@if($contacts != null)
//display contacts
@else
You dont have contacts
@endif
</code></pre>

<p>However it always assume that $contacts has something even if the query gives me nothing.</p>

<p>I did <code>dd($contacts)</code> and get: </p>

<pre><code>Collection {#247 ▼
  #items: []
}
</code></pre>

<p>How do I check if it is empty?</p>
