Prevent try/catch if class doesn't exist