Fix a bunch of other places that used operator[] to test whether