I think you should go over only own properties of the object.