I see, have made the change but have some questions for the purpose of improving knowledge.

`unit` is not part of the prototype so `hasOwnProperty` works so is there any downside (perf maybe?) to using it besides the fact that it was designed to do something else ?

also, what about `if (!unit in this)` - it looks odd and feels strange but I'm curious.