Why not just reassign to the original `providerList` arg?  With both in scope at once, it's a bit bug-prone since someone might accidentally reference the argument further below.