public function check($value)
    {
        if ($this->hasError($value)) {
            $this->error = sprintf($this->errorTpl, (string) $value);

            return false;
        }

        return true;
    }