Below is a link to a post by @rickkas7 about storing retained data in a struct.
There is an example of using a known identifier (magic bytes) stored within the struct as version control.
https://community.particle.io/t/reset-retained-variables-w-o-power-cycle/54253/6