Check the modelfield's class instead