title: Laravel Check if Array is empty
body: <p>I am struggling with displaying some content depending on if an array property does have a value or not.
  If an article has a title, I want to display the content of the entire article, if not I want to show something else. However, it doesn't work. The code in the else statement is not executed.</p>
  
  <p>What's wrong here?</p>
  
  <p>My Code is:</p>
  
  <pre><code>@foreach($restaurantmenue as $daily)
                      @foreach($daily-&gt;articles as $menue)
                       @if(!empty($menue-&gt;title))
                         &lt;div class="card card-horizontal"&gt;
                           &lt;div class="row"&gt;
                             &lt;div class="col-md-5"&gt;
                               &lt;div class="image" style="background-image: url({{asset('images/frontend/profile/profileHero.jpg')}}); background-size: cover; background-position: center center;"&gt;
                                 &lt;img src="{{asset('images/frontend/profile/profileHero.jpg')}}" alt="..." style="display: none;"&gt;
                                 &lt;div class="filter filter-azure"&gt;
                                   &lt;button type="button" class="btn btn-neutral btn-round"&gt;
                                       &lt;i class="fa fa-heart"&gt;&lt;/i&gt; SMÄCKT MIR
                                   &lt;/button&gt;
                                 &lt;/div&gt;
                               &lt;/div&gt;
                             &lt;/div&gt;
                             &lt;div class="col-md-7"&gt;
                                  &lt;div class="content"&gt;
                                    &lt;p class="category text-info"&gt;
                                         &lt;i class="fa fa-trophy"&gt;&lt;/i&gt; Best of
                                     &lt;/p&gt;
  
                                     &lt;a class="card-link" href="#"&gt;
                                         &lt;h4 class="title"&gt;{{$menue-&gt;title}} &lt;/h4&gt;
                                     &lt;/a&gt;
                                     &lt;a class="card-link" href="#"&gt;
                                         &lt;p class="description"&gt;{{$menue-&gt;body}}&lt;/p&gt;
                                         &lt;br /&gt;
                                         {{$menue-&gt;price}} €
                                     &lt;/a&gt;
                                      &lt;div class="footer"&gt;
                                         &lt;div class="stats"&gt;
                                             &lt;a class="card-link" href="#"&gt;
                                                &lt;i class="fa fa-male"&gt;&lt;/i&gt; {{$restaurant-&gt;name}}
                                             &lt;/a&gt;
                                         &lt;/div&gt;
                                         &lt;div class="stats"&gt;
                                           &lt;a class="card-link" href="#"&gt;
                                             &lt;i class="fa fa-comments"&gt;&lt;/i&gt; 23 Comments
                                           &lt;/a&gt;
                                         &lt;/div&gt;
                                         &lt;div class="stats"&gt;
                                            &lt;a class="card-link" href="#"&gt;
                                             &lt;i class="fa fa-heart"&gt;&lt;/i&gt; 231 Likes
                                            &lt;/a&gt;
                                         &lt;/div&gt;
                                     &lt;/div&gt;
                                 &lt;/div&gt;
                             &lt;/div&gt;
                           &lt;/div&gt;
                         &lt;/div&gt;
                        @else
                          No Articles for Today
                       @endif
                      @endforeach
                  @endforeach
  </code></pre>