The `if args.search_url` should not be tested in the function but outside, before calling it.