Issues with using serial.avaliable to start a loop

I noticed those changes, will keep that in mind for future projects. I think I'll leave it how it is, thanks for the suggestion.