/** * Prepare html output * * @return string */ protected function _toHtml() { $_item = $this->getItem(); if ($_item && $_item->getGwId()) { return parent::_toHtml(); } else { return false; } }