PHP 5.3 crashes if `method_exists()` is called on a class that does not exist.

Use `class_exists()` to test for class before testing for a method within a
class. Props @gibrown
Merge pull request #196 from xyu/module-related-posts

PHP 5.3 crashes in some instances with Related Posts