I have a function here:

```
def evenlengthchecker(nestedlist):
    length = len(nestedlist[0])
    for element in nestedlist:
         if len(element) != length:
             return False

```

This actually does work when the given nested list contains values. However, when I try something like `evenlengthchecker([])`, `IndexError`s everywhere!