Fixed PHP warning message around array processing