def update_axis_sets(axis_sets, axis, pos_values, vel_values):
    """Update axis_sets dictionary with values if new otherwise return True."""
    new_tuple = tuple(pos_values) + tuple(vel_values)
    if new_tuple in axis_sets[axis]:
        return True
    else:
        axis_sets[axis].add(new_tuple)
        return False