code: function findVariable(variables, name) {
    let i;
    let len;
  
    for (i = 0, len = variables.length; i < len; i++) { // eslint-disable-line no-plusplus
      if (variables[i].name === name) {
        return true;
      }
    }
  
    return false;
  }
docs: Search a particular variable in a list
  @param {Array} variables The variables list.
  @param {Array} name The name of the variable to search.
  @returns {Boolean} True if the variable was found, false if not.