isOptionValid(list, value) {
    const options = list.querySelectorAll('li')
    let validValue = false
    for (let i = 0; i < options.length; i++) {
      if (options[i].innerHTML === value) {
        validValue = true
        break
      }
    }
    return validValue
  }
Is the value in the autocomplete field in the pre-defined Options list?
@param {Object} list - list of autocomplete options
@param {Object} value -value trying to be set
@return {Object} - is the option in the pre defined list