Remove warnings by replacing class_exists() with file_exists()