public boolean hasRequestVariable(String variable) {
    return this.getRequestVariables().contains(variable);
  }
Return if the variable exists on the uri, query, or headers, in this template.

@param variable to look for.
@return true if the variable exists, false otherwise.
core/src/main/java/feign/RequestTemplate.java