/** * Check whether specified billing address is default for its customer * * @param Mage_Customer_Model_Address $address * @return bool */ protected function _isDefaultBilling($address) { return $address->getId() && $address->getId() == $address->getCustomer()->getDefaultBilling() || $address->getIsPrimaryBilling() || $address->getIsDefaultBilling(); }