Avoid nesting with:

    if (filters == null) {
        return null;
    }