check if Content exists umbraco code example
Example: umbraco helper check if content exist
var nodeExists = new UmbracoHelper(UmbracoContext.Current).TypedContentAtRoot().DescendantsOrSelf("documentType").Any(n => n.Name == nameVariable);
var nodeExists = new UmbracoHelper(UmbracoContext.Current).TypedContentAtRoot().DescendantsOrSelf("documentType").Any(n => n.Name == nameVariable);