Maybe this check should be delegated to the `applyFilters` function.