Isn't it necessary to check if there are any classes?