Changed 'instanceof Array' to '_.isArray'