Fixed a convenient method for dealing with array keys, since PHP 5.3 doesn't support it.