implemented the class_exists() method to verify if HTMLPurifier needs to be loaded or not.