/**
  *
  * @return array
  */
 public static function getAllAllowedCountries()
 {
     if (!is_array(self::$_allAllowedCountries)) {
         $allAllowedCountries = trim(Mage::getStoreConfig("payment/zitec_dpd_cashondelivery/all_allowed_countries"));
         if ($allAllowedCountries) {
             self::$_allAllowedCountries = explode(",", Mage::getStoreConfig("payment/zitec_dpd_cashondelivery/all_allowed_countries"));
         } else {
             self::$_allAllowedCountries = array();
         }
     }
     return self::$_allAllowedCountries;
 }
 /**
  * To check billing country is allowed for the payment method
  *
  * @return bool
  */
 public function canUseForCountry($country)
 {
     $allowedCountries = Zitec_Dpd_Model_Payment_Cashondelivery_Source_Country::getAllAllowedCountries();
     $canUseForCountry = parent::canUseForCountry($country) && (!$allowedCountries || in_array($country, $allowedCountries));
     return $canUseForCountry ? true : false;
 }