Why not combine these two if statements into a single one with an 'or'?