- added check if the modelData is already an instance of the ModelClass