An array is called `zero-balanced` if its elements sum to `0` and for each positive element `n`, there exists another element that is the negative of `n`. Write a function named `ìsZeroBalanced` that returns `true` if its argument is `zero-balanced` array, else return `false`. Note that an `empty array` will not sum to `zero`.
def is_zero_balanced(arr):
    pos = (n for n in arr if n > 0)
    neg = (-n for n in arr if n < 0)
    return sorted(pos) == sorted(neg) if arr else False

def is_zero_balanced(arr):
    pos = (n for n in arr if n > 0)
    neg = (-n for n in arr if n < 0)
    return sorted(pos) == sorted(neg) if arr else False
