diff --git a/src/Plugin/migrate_plus/data_parser/Xml.php b/src/Plugin/migrate_plus/data_parser/Xml.php
index 6c08069..8b5896e 100644
--- a/src/Plugin/migrate_plus/data_parser/Xml.php
+++ b/src/Plugin/migrate_plus/data_parser/Xml.php
@@ -210,7 +210,7 @@ class Xml extends DataParserPluginBase {
           // We're positioned to the right element path - build the SimpleXML
           // object to enable proper xpath predicate evaluation.
           $target_element = $this->getSimpleXml();
-          if ($target_element !== FALSE) {
+          if (!empty($target_element)) {
             if (empty($this->xpathPredicate) || $this->predicateMatches($target_element)) {
               break;
             }
