Use Try.isSuccess instead of map