You could write this as 
```php
return $left && $this->nodes['right']->evaluate($functions, $values);
```
and use the short-circuit operator from PHP.