Avoid enumeration conflicts by using hasOwnProperty