Check if the key parameter exists
key
bool hasParam(String key) => params == null ? false : params!.containsKey(key);