Check so Papi exists before trying to register the page types directory