public static string SafeProperty(this DynamicNode node, string propertyName)
        {
            string returnValue = "";

            if (node.HasProperty(propertyName))
            {
                returnValue = node.GetProperty(propertyName).Value as string;
            }

            return(returnValue);
        }
        public static bool IfSafeProperty(this DynamicNode node, string propertyName, out string result)
        {
            string returnValue = "";

            if (node.HasProperty(propertyName))
            {
                returnValue = node.GetProperty(propertyName).Value as string;
            }

            result = returnValue;
            return(!string.IsNullOrEmpty(returnValue));
        }
        public static bool IfSafePropertyMatch(this DynamicNode node, string propertyName, string match)
        {
            bool   returnValue   = false;
            string propertyValue = "";

            if (node.HasProperty(propertyName))
            {
                propertyValue = node.GetProperty(propertyName).Value as string;
                returnValue   = (propertyValue == match);
            }

            return(returnValue);
        }