/** * Renders the control. * @param THtmlWriter the writer for the rendering purpose. */ public function render($writer) { if ($this->getHasItems()) { parent::render($writer); } }