protected function activateItems(&$item)
	{
		$hasActiveChild = false;
		if (isset($item['items'])) {
			foreach ($item['items'] as &$childItem) {
				if ($this->activateItems($childItem)) $hasActiveChild = true;
			}
		}

		$isActive = isset($item['active']) ? $item['active'] : $this->isItemActive($item);
		if (!$isActive && $hasActiveChild) $isActive = true;
		$item['active'] = $isActive;

		return $isActive;
	}