If you extracted the function to get the index this could share the code:

```js
return lookupIndex(this, key) !== undefined;
```