def lbTreeHasDimDefault(lbStruct):
    for lbEntry in lbStruct:
        if lbEntry.isELR:
            if (not lbEntry.childStruct):
                continue
            if lbTreeHasDimDefault(lbEntry.childStruct):
                return True
        else:
            if ((not lbEntry.isRoot) and ((lbEntry.arcrole == '_dimensions_') and (lbEntry.role == '_dimensionDefault_'))):
                return True
            if lbTreeHasDimDefault(lbEntry.childStruct):
                return True
    return False
def lbTreeHasDimDefault(lbStruct):
    for lbEntry in lbStruct:
        if lbEntry.isELR:
            if (not lbEntry.childStruct):
                continue
            if lbTreeHasDimDefault(lbEntry.childStruct):
                return True
        else:
            if ((not lbEntry.isRoot) and ((lbEntry.arcrole == '_dimensions_') and (lbEntry.role == '_dimensionDefault_'))):
                return True
            if lbTreeHasDimDefault(lbEntry.childStruct):
                return True
    return False