guarding places where indexOf can be invoked on null