Simplifying if statements.