typed dict loop check