Is the `Filter` entry in the dictionary *guaranteed* to be present? If not, I suggest adding a `dict.has('Filter')` above to prevent issues.