checks if the structure object is charge balanced

def _is_charge_balanced(struct):
        """
        checks if the structure object is charge balanced
        """
        if sum([s.specie.oxi_state for s in struct.sites]) == 0.0:
            return True
        else:
            return False