code: def _get_bool_val(self, name):
          
          element = getattr(self, name)
          if element is None:
              return None
          return element.val
docs: Return the value of the boolean child element having *name*, e.g.
          'b', 'i', and 'smallCaps'.