Or you could simply avoid letting your cities without troops. Gifting countries is a bad idea because of what Goblin already said, so I'm against it.
----
"Whenever death may surprise us, let it be welcome if our battle cry has reached even one receptive ear and another hand reaches out to take up our arms".