Once you default the from to 0, I think you can then do this in one if. Then either put the return in there, or reverse the logic and put the remixCount++ in there.