getUser(); if ($user && $user->hasAvailableResources()) { return true; } return false; } }