@php if(Schema::hasTable('color_options')){ $color = App\ColorOption::first(); } @endphp @if(isset($color)) @else @endif