title: How can I check if a array is empty?
body: <p>I have a problem; here is a part of my controller; it shows me the results I want.</p>
  
  <pre><code>$angebotDetails = Angebot::where('firma',$id)-&gt;get();
  </code></pre>
  
  <p>But if there are empty, it shows me nothing, because there are empty.<br>
  Now I want if they are empty, it should show me some text, but I dont get it.<br>
  I have a foreach who shows me all my results; I tried <code>isEmpty</code> like this:</p>
  
  <pre><code>@foreach($angebotDetails as $key =&gt; $angebotDetail)
    @if($angebotDetails-&gt;isEmpty)
    &lt;h4&gt;Wir haben momentan leider keine Angebote für Dich.&lt;/h4&gt;
    @endif
  </code></pre>
  
  <p>or </p>
  
  <pre><code>if(empty($angebotDetails)
  </code></pre>
  
  <p>or   <code>=== 0</code> or <code>=== '0'</code> or <code>= null</code></p>
  
  <p>but it shows me nothing, I dont know why.</p>
  
  <p>If I tried <code>dd($angebotDetails)</code> it shows me </p>
  
  <pre><code>#items: []
  </code></pre>
  
  <p>and if there are something it shows me</p>
  
  <pre><code>#items: array[1]
  </code></pre>