it avoids duplicating code if confounds is None (we can't iter on it in the next line if it's simply None).