change hasProp to hasOwn