The code is already replacing instances when needed (when there was no instances previously created in the file). To do it regardless may lead to remove instances from the loop. The other related nodes did not have that issue: * Curve to Points * Curve Fill