"if self.inputs.collapse_output_transforms == True" "len(self.inputs.transforms)" is not even evaluated. See line 496.