add hasItemType method