You can check if View file exists before actually loading it.
1if (view()->exists('custom.page')) {2 // Load the view3}
You can even load an array of views and only the first existing will be actually loaded.
1return view()->first(['custom.dashboard', 'dashboard'], $data);