If we're not distinguishing between empty strings and `None`, could do `elif source_location or relative_path_to_files` here and `if not source_location or not relative_path_to_files` on the next line, since `''` is falsy.