But sir, we come into this condition (ie error = true) only if another session with the same name exists under the same course. So if we ever enter this path, there must be a session.