Using `Effect.filterOrFail` and `Effect.head` in `Effect.gen` - Effect Community