You don't filter in this case.  I suspect you want to get rid of the else below and filter always.  Oh wait. I guess the manifest guarantees that a single type must always be one of the supported ones.  Still, easier to just always filter, I think.