Maybe move the var declarations inside the if statement to save them all being initiated when multiples.length == 0.