protected function checkAddress(Mage_Customer_Model_Address_Abstract $address, $validityInSeconds)
 {
     if (!$address->hasData()) {
         return false;
     }
     $savedDate = $address->getData($this->prefix . '_date');
     $savedScore = $address->getData($this->prefix . '_score');
     if (empty($savedDate) or empty($savedScore)) {
         return false;
     }
     if ($this->addressHasChanged($address)) {
         return false;
     }
     // Verify the validity period is not expired:
     if (!$this->helper()->isDateStillValid($savedDate, $validityInSeconds)) {
         return false;
     }
     $address->setData($this->prefix . '_score', $savedScore);
     return $savedScore;
 }
 /**
  * Determine if the address is for use in checkout, specifically, Onepage Checkout
  * @param Mage_Customer_Model_Address_Abstract $address
  * @return bool
  */
 protected function _isCheckoutAddress(Mage_Customer_Model_Address_Abstract $address)
 {
     return $address->hasData('quote_id');
 }