objects: correct work with hasOwnProperty