def _always_together(nums, arr):
    """Check if nums always appear together in elements of arr."""
    return all(set(nums).issubset(set(el)) or set(nums).isdisjoint(set(el))
               for el in arr)