Verify that a security group exists before attempting to use its name as an inventory key.