def remove_empties
      self.keys.each do |key|
        if (self[key].kind_of?(Array) && self[key].empty?) || self[key].nil?
          self.delete(key)
        end
      end
    end
def remove_empties
      self.keys.each do |key|
        if (self[key].kind_of?(Array) && self[key].empty?) || self[key].nil?
          self.delete(key)
        end
      end
    end
Delete any keys that are empty arrays