/**
  * Change the autorenew state of the given domain. When autorenew is enabled, the domain will be extended
  *
  * @param string $domain    The domain name to change the autorenew setting for
  * @param bool   $autorenew The new autorenew value (True = On|False = Off)
  *
  * @return bool True when the setting is succesfully changed, False otherwise
  */
 public function setDomainAutoRenew($domain, $autorenew = true)
 {
     if (!$this->_checkLogin()) {
         return false;
     }
     try {
         $this->odr->setAutorenew($domain, $autorenew);
     } catch (Api_Odr_Exception $e) {
         $this->Error[] = $e->getMessage();
         return false;
     }
     $result = $this->odr->getResult();
     if ($result['status'] !== Api_Odr::STATUS_SUCCESS) {
         return $this->parseError($result['response']['message'], $result['code']);
     }
     // Autorenew method always return true if no error happened
     return true;
 }