Checking to see if classes exist