This would be better as:   elif callable(self._values):