Check if class exists.