Is there a way to gracefully check if a page exists in EpiServer CMS 5 (given the integer pageId) without , to catch PageNotFoundException, the cast
DataFactory.Instance.GetPage(pageReference)
(EpiServer will happily create a PageReference using a non-existing pageId).
Of course, I can check if the page exists without throwing an exception or doing a massive loop?
source
share