In a small list on mobile, how to manage a simple filter?

In a simple list, 4 types of a specific variable can be displayed.

Which is better? Check the list and display only available variables in the filter, or all the filters shows, and if there is no item, should the blank list be displayed?

For example, as shown in Figure 1, there is no type 3 in the list below.

fig1- list

There are now two ways to display the filter:

  1. Show in the list of filters and if you select Show empty list error. (fig2)

fig2 - with type3

  1. Remove this item from the list of filters and display the filter without item 3. (fig3)

fig3 - without type3