fixes accessing array element for php5.3 compatibility