code: def is_empty(self):
          
          if len(self._subject) > 0:
              raise self._error_factory(_format("Expected {} to be empty", self._subject))
          return ChainInspector(self._subject)
docs: Ensures :attr:`subject` has length zero.