Made this a little more straight-forward

Hopefully, Pantheon agrees with this a little more. I guess in
PHP 5.3 (running on Pantheon), the mixed result from end() could
not be used as an array?? Or, maybe it had to be declared first?

Not really sure, so we'll try this.

Signed-off-by: Elliot Voris <elliotfriend@gmail.com>