Stricter coding. Duh, PHP, end(array_keys($array)) is fine, I swear.

git-svn-id: http://yourls.googlecode.com/svn/trunk@849 12232710-3e20-11de-b438-597f59cd7555