Just fold this into the if below. Better yet, `if getattr(self, 'max_col_norm', None) is not None:`. But why does this method not include anything about `self.weight_constraints`? This is the appropriate place for it.