`if not course_id or not output:` is more Pythonic.