Handling Undefined in Promise with Effect.filterOrFail in TypeScript - Effect Community