Array pop fix
I was getting an E_NOTICE because array_pop() takes an array by reference, and I'm passing it a function, not a variable.
current() is more what I'm looking for anyway, and is passed a value, so no E_NOTICE.
This is minor enough that I'm gonna self-merge.