It's being passed by reference to the function (meaning that the function is working against the passed variable, not using a copy of it's value) so that it can be populated with the found data. That shouldn't cause any problems - when the function is done, all you have is a regular array.