protected function isObjTypeInSecondaryMenuItem($objType, $item)
    {
        if (isset($item['links'])) {
            foreach ($item['links'] as $obj => $i) {
                if ($obj === $objType) {
                    return true;
                }
            }
        }

        if (isset($item['groups'])) {
            foreach ($item['groups'] as $group) {
                if ($this->isObjTypeInSecondaryMenuItem($objType, $group)) {
                    return true;
                }
            }
        }

        return false;
    }