RFID Repeating?

I don't think so, cause what I want it to do is, it scans a tag, when it gets a valid code(12 digits) it performs a task. In my code it is the (found) if statement for finding it true that it exists.
Now after that, that while loop happens and cleans up any mess(that buffer/repeating problem I had) so it will clear the RFID buffer? So yes it is data, but it is data I already used. Does it make sense? Do you think there is a better way of doing it?

Thanks