Check whether the class exists.