combine these two if statements with ``&&`` ?