code: def process(self, key, val):
          
          for field in self.fields:
              if field.check(key, val):
                  return
  
          for field in self.optional:
              if field.check(key, val):
                  return
docs: Try to look for `key` in all required and optional fields. If found,
          set the `val`.