length function returns undefined if value has no length property
0.6.2