protected function isVisible($item) { return !isset($item['can']) || $this->gate->allows($item['can']); }