public function isValid($condition)
    {
        $conditionTree = ConditionParser::get()
            ->parse($condition);

        if (true === $conditionTree->getValidationResult()->hasErrors()) {
            $errorMessage = $this->translateErrorMessage(
                'validator.form.condition_is_valid.error',
                'formz',
                [
                    $condition->getExpression(),
                    $conditionTree->getValidationResult()->getFirstError()->getMessage()
                ]
            );

            $this->addError($errorMessage, self::ERROR_CODE);
        }
    }