Checking if  is an array, stepping through if it is and sanitizing each value