use hasOwnProp only in not safe compilation