findPageOrGroup = (pagename) => {
  const page = Page.findOne({ name: pagename });
  if (page) return { page, pageGroup: null };
  else {
    const pageGroup = PageGroup.findOne({ name: pagename });
    if (pageGroup) return { page: null, pageGroup };
    else return { page: null, pageGroup: null };
  }
}
@type {object}
@const
@namespace pageRouter
@category server
@subcategory routes