Should this be changed so that it checks the pages that exist for a new course (before any custom ones have been added)?