def findChild(self, name, ignoreInvalid=False):
    children = self.param.get(self.CHILDNAME)
    if (children is None):
        return (- 1)
    if (not isinstance(children, list)):
        return (- 1)
    for i in range(0, len(children)):
        child = children[i]
        if (child.get('name') == name):
            if ignoreInvalid:
                inList = [e for e in self.addonList if ((e.get('name') == name) and (not (e.get('invalid') == True)))]
                if (len(inList) < 0):
                    return (- 1)
            return i
    return (- 1)
def findChild(self, name, ignoreInvalid=False):
    children = self.param.get(self.CHILDNAME)
    if (children is None):
        return (- 1)
    if (not isinstance(children, list)):
        return (- 1)
    for i in range(0, len(children)):
        child = children[i]
        if (child.get('name') == name):
            if ignoreInvalid:
                inList = [e for e in self.addonList if ((e.get('name') == name) and (not (e.get('invalid') == True)))]
                if (len(inList) < 0):
                    return (- 1)
            return i
    return (- 1)