Amendment for hasOwnProperty matching