public function check_attempts(): bool
  {
    if ( !isset($this->cfg) ){
      return false;
    }

    //die(var_dump($this->session->get('num_attempts'), $this->sess_cfg, $this->session->get('attempts')));
    if ( isset($this->cfg['num_attempts']) && $this->cfg['num_attempts'] > $this->class_cfg['max_attempts'] ){
      return false;
    }
    return true;
  }