Fixed array dereferencing issue in PHP version >= 5.3x