title: Laravel check if collection is empty
body: <p>I've got this in my Laravel webapp:</p>
  
  <pre><code>@foreach($mentors as $mentor)
      @foreach($mentor-&gt;intern as $intern)
          &lt;tr class="table-row-link" data-href="/werknemer/{!! $intern-&gt;employee-&gt;EmployeeId !!}"&gt;
              &lt;td&gt;{{ $intern-&gt;employee-&gt;FirstName }}&lt;/td&gt;
              &lt;td&gt;{{  $intern-&gt;employee-&gt;LastName }}&lt;/td&gt;
          &lt;/tr&gt;
      @endforeach
  @endforeach
  </code></pre>
  
  <p>How could I check if there are any <code>$mentors-&gt;intern-&gt;employee</code> ?</p>
  
  <p>When I do :</p>
  
  <pre><code>@if(count($mentors))
  </code></pre>
  
  <p>It does not check for that.</p>