Fixed php printout errors related to variables not existing in the array.