Tinkering with hasOwnProperty vs getOwnPropertyNames