public function isGenerated($token)
    {
        $result = false;
        $token = (string) $token;
        if ($token !== '') {
            $this->searchQuery->execute([$token]);
            $row = $this->searchQuery->fetch();
            $this->searchQuery->closeCursor();
            if ($row !== false) {
                $result = true;
            }
        }

        return $result;
    }