/** * Is the element hidden or not - if not set then return false * * @return bool */ public function isHidden() { $params = $this->getParams(); if ($this->user->get('id') != 0) { if ($params->get('captcha-showloggedin', 0) == 0) { return true; } } return parent::isHidden(); }