Why `length == null` rather than `typeof length === 'undefined'`?