Right, they both do the same, but typeof is slightly faster than hasOwnProperty, changing this.