How to represent a function with a boolean return type as an Effect for mapping? - Effect Community