/// <summary>
        /// Create a cursor mark parameter
        /// </summary>
        /// <param name="documentSearch">Document search engine</param>
        /// <param name="conditional">Conditional to add parameter</param>
        /// <param name="cursorMark">Mark used to paging through the results</param>
        /// <returns>Document search engine</returns>
        public static DocumentSearch <TDocument> CursorMarkIf <TDocument>(this DocumentSearch <TDocument> documentSearch, Func <bool> conditional, string cursorMark)
            where TDocument : Document
        {
            Checker.IsNull(conditional);

            if (conditional.Invoke())
            {
                documentSearch.CursorMark(cursorMark);
            }

            return(documentSearch);
        }