only check if tuple, not other types of iterable. Because sometimes we pass data, which is an iterable (it returns slices of trials) but we don't want to it to be unpacked. It should work fine, but it really depends on the input format