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