Question: how do you know that electromagnetic waves travel through a vacuum?
Answer: As we know electromagnetic waves are created by charges in motion or by magnetic field created by charged particles. And for the flow of field other charge carriers are required but vacuum does not contain any charged particles and how these waves are being carried forward after they have been produced from a source.