The amount of logic inside here is a little confusing, might need to either simplify or comment on the behavior.
Is this it?

> if the config value is nil, then make decision based on existence of gpgkey
> otherwise, use the true/false value of gpgcheck