switch to _.isArray