Check if lazy load classes exist before using them