This will break on `entry === null`. add `&& entry !== null` and a test. `Promise.cast(null)` should give you a promise for `null`.