private static bool DocumentHasNode(XmlDocument document, string node) { return DocumentNode(document, node) != null; }