@php $is_edit = true; if(is_null($contact) || !isset($contact)){ $is_edit = false; } @endphp