Sast error: Continue should only be used inside a loop
