hasOwnProperty prevents annoying error.