Added an exists() method to PostType