if (isLoggedin()) { $navbar = fetch_user_nav(); } else { $navbar = fetch_guest_nav(); }
$navbar = isLoggedin() ? fetch_user_nav() : fetch_guest_nav();