backward compatible check for key with . in var name