if i filter an array with array_filter to eliminate null values, keys are preserved and this generated \"holes\" in the array. Eg:
The filtered version of
You could use array_values after filtering to get the values.