diff --git a/src/BolOpenApi/Factory/ModelFactory.php b/src/BolOpenApi/Factory/ModelFactory.php
index <HASH>..<HASH> 100644
--- a/src/BolOpenApi/Factory/ModelFactory.php
+++ b/src/BolOpenApi/Factory/ModelFactory.php
@@ -198,6 +198,11 @@ class ModelFactory
     public function createOffers(\SimpleXMLElement $xmlElement)

     {

         $offers = new Offers();

+

+        if (!isset($xmlElement) || $xmlElement->count() <= 0) {

+            return $offers;

+        }

+

         foreach ($xmlElement->children() as $child) {

             if ($child->getName() == 'Offer') {

                 $offers->addOffer($this->createOffer($child));
Fixed issue with warning Node no longer exists when offers are not present in the offer node