how about just `if opts[:use_json]` ?