Am passing one array and one scalar to a function to check where that value is part of array or not in case it is not part then push to array. For reference purpose what It
Pass the name of the array along with the reference; it isn't that hard.
People do do things like this with source filters or PadWalker::var_name, but it isn't a good idea.