sum([]) == 0, can you use this to avoid the above branch?