title: Laravel Check Empty Array
body: <p>I still have trouble with checking if an array is empty or not in laravel.</p>
  
  <p>This is my view:</p>
  
  <pre><code>@foreach($restaurantmenue as $daily)
  
                      @if(empty($daily-&gt;articles))
                        no article
                        @else
                          @foreach($daily-&gt;articles as $menue)
                              &lt;a class="card-link" href="#"&gt;
                                  &lt;h4 class="title"&gt;{{$menue-&gt;title}} &lt;/h4&gt;
                              &lt;/a&gt;
                         @endforeach
                      @endif
  
  
                  @endforeach
  </code></pre>
  
  <p>{{dd($daily->articles)}}
  When I check my views (One with an Article and the other without an article)       I get this output:</p>
  
  <p>The View with an existing article shows:
      Collection {#228 ▼
        #items: array:1 [▶]
      }</p>
  
  <p>And the view without an article shows:
      Collection {#227 ▼
    #items: []
  }</p>
  
  <p>I have no idea why the code in the IF STATEMENT is not executed. The "No Article" Message is not displayed. </p>