Does Class Exist?

Is there a way to see if a class exists? something like:

if( MyClass exist in the Library or has been imported in to the class ){
var myClass = new MyClass()
addChild(myClass);
}else{
trace(“MyClass doesn’t exist”)
}

I’m not trying to see if it exists on the stage just want to know if I have access to it.