You can merge these two if statements.