Replaced a PHP5.4 array call with a normal call