can this be && of the outer if?