fix(osx.lt): safer square bracket indexof