diff --git a/src/Plugin/migrate_plus/data_parser/Xml.php b/src/Plugin/migrate_plus/data_parser/Xml.php
index 6c08069..3a6dca9 100644
--- a/src/Plugin/migrate_plus/data_parser/Xml.php
+++ b/src/Plugin/migrate_plus/data_parser/Xml.php
@@ -234,7 +234,7 @@ class Xml extends DataParserPluginBase {
 
     // If we've found the desired element, populate the currentItem and
     // currentId with its data.
-    if ($target_element !== FALSE && !is_null($target_element)) {
+    if ($target_element !== FALSE && !empty($target_element)) {
       foreach ($this->fieldSelectors() as $field_name => $xpath) {
         $prefix = substr($xpath, 0, 3);
         if (in_array($prefix, ['../', '..\\'])) {
