filterArray() -> filterIndexedArray() + improved