added check to make sure we only filter formats that have at least one corresponding mime