def is_valid(self):<EOL>
if not self._errors:<EOL><INDENT>try:<EOL><INDENT>self._errors.append(next(self._validator))<EOL><DEDENT>except StopIteration:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>return not self._errors<EOL>
Returns whether the bundle is valid.