protected function containsActive($items) { foreach ($items as $item) { if ($this->isActive($item)) { return true; } } return false; }