Check class name, a try-catch would throw fatal and not an exception