fixed php 5.3 and below error going straight to array call