Iterate over dict without casting to list.