simplify trytwice

tests pass
wip: refactor
just return unit
comment