Better way to detect dictionary.