To clarify, when I say "it won't work", I mean that it won't work as a "pop" function.

It works perfectly well as a "return a new array which is a copy of the passed array with the first element removed" function.