check if the bound variable is a dictionary with the right keys