Correction of f5c5cd4

Small correction, array are also objects (see this http://jsfiddle.net/qD6Kw/) so we need to swap round the tests.