Checking to see if class exists