Fix array access syntax for older PHP

There was a syntax error when running tests in PHP 5.3.10.