@php $accountMenu ??= collect(); $accountMenu = ($accountMenu instanceof \Illuminate\Support\Collection) ? $accountMenu : collect(); @endphp