I was using an if statement at first but considering that RegfilterType is a model that can contain more and more types it is subject to evolution
if
RegfilterType