`if not xml_reports:` is the usual way to test this.