Simplify evalExpression

Why isn't there already a whenM?