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
I think you are trying to check whether the array is empty or not.You can do like this :
@if(!$result->isEmpty()) // $result is not empty @else // $result is empty @endif
Reference isEmpty()