public void addDocumentOperation(DocumentOperation documentOperation) {
        if (documentsToAdd == null) documentsToAdd = new ArrayList<>(1);
        documentsToAdd.add(documentOperation);
    }
Returns true if this variable is present, even if it is null
docproc/src/main/java/com/yahoo/docproc/Processing.java