refactor #isItemFiltered