function findVariable(variables, name) {
  return variables.some((variable) => variable.name === name);
}
Search a particular variable in a list
@param {Array} variables The variables list.
@param {string} name The name of the variable to search.
@returns {boolean} True if the variable was found, false if not.