Added check to results of Appointment query.