Class existing verification improved. First check does the class exists, and then is it  instantiable.