#20264 function that loads a class if the class exists