code: private function fieldExists($strTableName, $strColumnName)
      {
          $columns = $this->connection->getSchemaManager()->listTableColumns($strTableName);
  
          return isset($columns[$strColumnName]);
      }
docs: Check is a table column exists.
  
  @param string $strTableName  Table name.
  @param string $strColumnName Column name.
  
  @return bool