/** * * @param Mage_Sales_Model_Order_Shipment $shipment * * @return boolean */ public function isCancelledWithDpd(Mage_Sales_Model_Order_Shipment $shipment) { return $this->isShippingMethodDpd($shipment->getOrder()->getShippingMethod()) && !$shipment->getShippingLabel(); }