/** * Check if widget is visible * * @return boolean */ protected function isVisible() { return parent::isVisible() && $this->getObjectId(); }