public boolean isSubset(String[] subset, String[] set) {
        
        // For each word, check if it is in the set.
        for(String subElem : subset) {
            
            // Skip first (because it is the queryVar).
            if (subElem.equals(subset[0])) {
                continue;
            }
            
            // Skip empty elements.
            if (subElem.isEmpty()) {
                continue;
            }
            boolean isInSet = false;
            
            // See if there is a var that is the same.
            for(String setElem : set) {
                
                // Skip empty elements.
                if (setElem.isEmpty()) {
                    continue;
                }
                
                if (subElem.equals(setElem)) {
                    isInSet = true;
                }
            }
            
            // If one word is not in vars, 
            if (!isInSet) {
                return false;
            }
        }
        
        return true;
    }