If you need to determine if a view exists, you may use the View facade. The exists method will return true if the view exists:
View
exists
true
use Illuminate\Support\Facades\View; if (View::exists('emails.customer')) { // }