Preassign the array $idsWithoutPosition

I've detected a problem in my solution because array was not initialized.