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