Add `isKeyword()` and use it instead of `Array#indexOf`

Thanks to @oxyc for the suggestion in #3.