On my browser performances are better using typeof value === 'undefined', see http://jsperf.com/value-null-vs-typeof-value-undefined