code: private boolean hasKeySpace(boolean printError)
      {
          boolean hasKeyspace = keySpace != null;
  
          if (!hasKeyspace && printError)
              sessionState.err.println("Not authorized to a working keyspace.");
  
          return hasKeyspace;
      }
docs: Returns true if this.keySpace is set, false otherwise
  @return boolean