I'm not able to figure out how to avoid condition here, would like to see an example when you have time :)