Add more class_exists() checks to avoid redefining classes inside WP hoo...

...ks. (Fixes nested Composer dependencies)