Check if class exists, before creating a reflectionclass.