This can be shortened to 'if args.input', the 'is not None' is implied.