private function hasToken()
    {
        $token = $this->_scopeConfig->getValue('payment/pagseguro/token');
        // check for a e-mail
        if (!isset($token))
            return false;

        // check is the e-mail is valid
        if ($this->isValidToken($token))
            return true;
        return false;
    }