Minor refactor for php v5.3, which doesn't support immediate dereferencing of array entries

The previous syntax gives an error on php 5.3