The if check could go outside the test.