checks content type by route before rendering single