Add a function exists check

Personally, I'd probably split the classes out into individual files so everything could be aligned properly without making the files unreadable. As it stands, this will make PHP_CodeSniffer spazz out when running the WordPress coding standards. Still, it's better than not having the check in place. :)