STY: Uses if/else for setting sim_params in algorithm.

Instead of checking 'if' and then 'if not', uses an if/else.