adding extension to hasNestedMenu