diff --git a/app/code/Magento/Sales/Model/Order.php b/app/code/Magento/Sales/Model/Order.php index a04f88c7ade1d..dc4fd7d75cf77 100644 --- a/app/code/Magento/Sales/Model/Order.php +++ b/app/code/Magento/Sales/Model/Order.php @@ -1770,7 +1770,7 @@ public function getTracksCollection() */ public function hasInvoices() { - return $this->getInvoiceCollection()->count(); + return boolval($this->getInvoiceCollection()->count()); } /** @@ -1780,7 +1780,7 @@ public function hasInvoices() */ public function hasShipments() { - return $this->getShipmentsCollection()->count(); + return boolval($this->getShipmentsCollection()->count()); } /** @@ -1790,7 +1790,7 @@ public function hasShipments() */ public function hasCreditmemos() { - return $this->getCreditmemosCollection()->count(); + return boolval($this->getCreditmemosCollection()->count()); } /**