wouldn't it be better to loop over everything to report all missing classes instead of stopping on the first one ?