You should make this check earlier, when you build `self.constant_` (e.g., at line 110).