title: Laravel : Ignore object in blade template
body: <p>I have a question concerning best practise with Laravel. I have a blade page who display all my products and I test if my product has image in my loop, I ignore it if it's the case :</p>
  
  <pre><code>       @foreach ($products as $product)
              @if(is_null($product-&gt;getMedia()-&gt;first())) 
                  @continue
              @endif 
              &lt;div class="col-md-4"&gt;
                   //display image and product informations
              &lt;/div&gt;
          @endforeach
  </code></pre>
  
  <p>My question is :
  Is this correct ? </p>
  
  <p>Or souhld I ignore the product who has no image in my controller ?</p>
  
  <p>Thanks !</p>