if "subtotals_in_kgco2e" not in report['reporting_period'].keys() or \
            report['reporting_period']['subtotals_in_kgco2e'] is None or \
            len(report['reporting_period']['subtotals_in_kgco2e']) == 0:
        pass
    else: