public function isEnabled($id = false) { $user = $id ? $this->getUser($id) : $this->getCurrentUser(); return (bool) $user['enabled']; }