Apparently .length will only look at numeric keys in an array (wtf JS!)