This is an ugly way to write an if statement.