check hasOwnProperty exists