Isn't that all solvers? I think you can remove the above if statement altogether.