Use hasOwnProperty instead of in

Better performance and ensures the key isn't just from the prototype
chain