@staticmethod
def empty_or_equal(lefts, rights):
    return ((not lefts) or (not rights) or all_equal(lefts, rights))
@staticmethod
def empty_or_equal(lefts, rights):
    return ((not lefts) or (not rights) or all_equal(lefts, rights))