code: private boolean scopeContainsInstances(GraqlCompute query, ConceptId... ids) {
          for (ConceptId id : ids) {
              Thing thing = tx.getConcept(id);
              if (thing == null || !scopeTypeLabels(query).contains(thing.type().label())) return false;
          }
          return true;
      }
docs: Helper method to check if concept instances exist in the query scope
  
  @param ids
  @return true if they exist, false if they don't