PHP 5.3 crashes in some instances with Related Posts

If `method_exists()` is called on a class that does not exist PHP 5.3 will crash. Use `class_exists()` to test for class before testing for a method within a class. Props @gibrown