checked if the course_id exists in the OrderItem subclass.