Hi Mark,
you can try something like this
public static bool DoesNodeExist(string AliasPath)
{
bool _result = false;
UserInfo ui = MembershipContext.AuthenticatedUser;
CMS.DocumentEngine.TreeNode node = DocumentHelper.GetDocuments().WhereEquals("NodeAliasPath", AliasPath).FirstOrDefault();
if (node != null)
{
_result = true;
}
return _result;
}
Also, it will be much better if you set which columns to return, this will speed up this query.
DocumentHelper.GetDocuments().Column("NodeAliasPath").WhereEquals("NodeAliasPath", AliasPath).FirstOrDefault();