check if pages has categories