Fix array access in PHP 5.3