using continue vs nested if statements