This looks little worrying. Comment says empty object but if seems to test for falsy values. I think something like this would be more adequate:

```js
// Item is a `null` on removes.
if (item === null)
  return resolve(item)
```