/** * Check if the sidebar has items. * * @return bool */ public function hasItems() { return !$this->items->isEmpty(); }
/** * Check if the item has children. * * @return bool */ public function hasChildren() { return !$this->children->isEmpty(); }