Clean up a nit that was identified after CQing an earlier CL

Change check to use empty instead of size <= 0. Also added a comment
to the check to make it clear what is being guarded against

BUG=chromium:863098

Change-Id: I993085c04ab66a9e2869c83d8fb48883ec0bbf71
Reviewed-on: https://pdfium-review.googlesource.com/39497
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/core/fxcrt/xml/cfx_xmlparser.cpp b/core/fxcrt/xml/cfx_xmlparser.cpp
index 115b3e7..d66d980 100644
--- a/core/fxcrt/xml/cfx_xmlparser.cpp
+++ b/core/fxcrt/xml/cfx_xmlparser.cpp
@@ -134,7 +134,9 @@
               current_parser_state = FDE_XmlSyntaxState::Node;
             }
           } else {
-            if (node_type_stack.size() <= 0 && ch && !FXSYS_iswspace(ch))
+            // Fail if there is text outside of the root element, ignore
+            // whitespace/null.
+            if (node_type_stack.empty() && ch && !FXSYS_iswspace(ch))
               return false;
             ProcessTextChar(ch);
             current_buffer_idx++;