The above is logically equivalent to the following simplified version:

    if (response) {
        callback(null, response);
    } else if (errorInfo) {
        callback(errorInfo);
    } else {
        callback("Data not found in LocalStage.");
    }