@unless (isset($provider) && is_object($provider))
@endunless
@if(isset($provider->avatar)) @endif