Check if variable exist in laravel's blade directive
Blade has a directive to check if a variable is set:
@isset($var)
@endisset
Try checking if the variable is empty:
@if(empty($myvar))
<p>Data does not exist</p>
@else
<p>Your data is here!</p>
@endif
Can also check this thread