you could move this before the ``isset($this->functions[$operator])`` condition as you have exactly the same code inside it