Given the following Python code:

```
def avg(a):
  if len(a):
    return sum(a) / len(a)

```

What is the language defined behavior of `avg` when the length of `a` is zero or is its behavior unspecified by the language and thus should not be counted upon in Python code?