are_needed_keys_provided function

Checks whether the provided slices have the corresponding join keys