use _.isArray for old browser compatibility