check if classes are open or not