def is_same(matches0, matches1):
    """
    Checks if two arrays of matches are the same, ignoring order
    """
    matches0_set = set(map(tuple, matches0))
    matches1_set = set(map(tuple, matches1))
    return (matches0_set == matches1_set
            and len(matches0_set) == len(matches0) == len(matches1))