getUser()) { $profile = new Profile(); $profile->setUserId($user->getId()); $profile->load(); if ($profile->getType() == 'profile') { return $profile; } } return false; } } ?>