replace another $.isArray with Array.isArray