i'm debugging a laravel project, and there are many instances where the developer simply dropped double mustaches into the blade templates referencing object properties, without first checking if those relations exist.
example
{{$category->name}}
<small>{{$category->parent->name}}</small>
Is there a built in way in laravel to just silently fail if for example $category is not set, or $category->parent is not set, without resorting to something along these lines...
@if (isset($category))
{{$category->name}}
@endif
@if (isset($main_category->parent))
@if($main_category->parent != null)
<small>{{$main_category->parent->name}}</small>
@endif
@endif