Prevent autoloading before autoloader is setup

Since the autoloader hasn't been loaded yet, prevent autoloading in the `if ( class_exists() )` checks.