You can combine the two if statements.