this is not javascript LOL

stupid me used `.index()` instead of `in`