_isValidElement (id) {
    if (!id) {
      return false;
    }

    const element = document.getElementById(id);
    if (!element) {
      return false;
    }

    return true;
  }
/**
   * Checks if the ID provided is valid
   *
   * @param {string} id - The ID to validate
   * @return {boolean} If the ID was valid
   */
Checks if the ID provided is valid
@param {string} id - The ID to validate
@return {boolean} If the ID was valid
Checks if the ID provided is valid @param { string } id - The ID to validate @return { boolean } If the ID was valid
_isValidElement (id) {
    if (!id) {
      return false;
    }
    const element = document.getElementById(id);
    if (!element) {
      return false;
    }
    return true;
  }
_isValidElement ( id ) { if ( ! id ) { return false ; } const element = document . getElementById ( id ) ; if ( ! element ) { return false ; } return true ; }
Checks if the ID provided is valid
 @param {string} id - The ID to validate
 @return {boolean} If the ID was valid
Checks if the ID provided is valid @param { string } id - The ID to validate @return { boolean } If the ID was valid