Simplify If statements