i think there were exceptions involving [] being called on NilClass until this was added, i can revisit to make sure. some of these functions could probably use some tests as well