check for class existence

@scottrabin @jsutterfield 
make sure we can instantiate a class, and return a helpful error if not