Reduce if condition