Get collection in blade and check if empty
You don't need to check if your array is empty before using it in a foreach.

But if you need to check if it is empty (to show a message, for example), you can use the @empty tag. 

I'd do something like this: (Check also @forelse):

&lt;ul&gt;
  @forelse ($addresses as $address)
      &lt;li &gt;
      {!! displayText($address-&gt;toString()) !!}
      &lt;/li&gt;
  @empty($addresses)
      &lt;li&gt; No addresses... &lt;/li&gt;
  @endforelse
&lt;/ul&gt;