fixing utils.merge with hasOwnProperty