Simplify 'If' implementation