protected function evaluateResult($field, $result, $message)
    {
        $this->messages = [];
        if ($result) {
            return true;
        } else {
            if (is_array($field['name'])) {
                foreach ($field['name'] as $name) {
                    $this->messages[$name][] = $field['options']['message'] ?? $message;
                }
            } else {
                $this->messages[$field['name']][] = $field['options']['message'] ?? $message;
            }
            return false;
        }
    }