Implement View::hasClass.