setValue($value); if ($this->isRequired() && empty($value)) { // TODO: translate $this->addError('You are required to choose at least one element'); return false; } return true; } }