for clarity should lines 125-127 be replaced with:
 
`field = fields[key]
if is_xblock:
  return field.is_set_on(xblock), getattr(xblock, key)`