Fix array access for PHP 5.3