Shortened an if statement.