Copy missing filter-helper function