If the expiration date has passed for a mode, modes_for_course_dict does not include that mode, and therefore, it is covered by the `'verified' in modes` check .