added an isset check

I don't think version granularity is super-important at this point, UID is a legacy piece of useless info, if it is set, we can safely unset it.