I want to check if my foreach is empty so the basic html markup isn\'t displayed with no results inside. I\'m trying to wrap it in an if statement and then if it is empty do not
You should use empty()
@if (!empty($status->replies)) @foreach ($status->replies as $reply) {{ $reply->body }} @endforeach @endif
{{ $reply->body }}
You can use count, but if the array is larger it takes longer, if you only need to know if its empty, empty is the better one to use.