public function is_admin() { if (!mw_is_installed()) { return false; } if (Auth::check()) { return Auth::user()->is_admin; } }