Changed array dereferencing because of it's requirement for PHP 5.4