public function check(\Psr\Http\Message\ServerRequestInterface $request)
    {
        $data = $request->getParsedBody();
        if (! is_array($data)) {
            return false;
        }
        if (! isset($data[$this->name])) {
            return false;
        }
        return $this->token === $data[$this->name];
    }