Filter by index using an array