I totally agree (and added this TODO about it https://github.com/Yelp/Tron/pull/234/files#L7R127). It shouldn't be possible for this to raise IndexErrors, but it's not very pretty.

I'd like to make the Id class in another branch. I expect it to be a medium size change, and I didnt want to get it mixed up with these tronweb ui changes.