middleware/_modelIndex.js
function (cb) {

                formtoolsAPI.list.renderToolbarItems(req, res, req.params.model, function (err, result) {

                    if (err) {
                        return cb(err);
                    }

                    req.linz.model.list.toolbarItems = result;

                    return cb(null);

                });

            }
function (cb) {

                formtoolsAPI.list.renderToolbarItems(req, res, req.params.model, function (err, result) {

                    if (err) {
                        return cb(err);
                    }

                    req.linz.model.list.toolbarItems = result;

                    return cb(null);

                });

            }
function ( cb ) { formtoolsAPI . list . renderToolbarItems ( req , res , req . params . model , function ( err , result ) { if ( err ) { return cb ( err ) ; } req . linz . model . list . toolbarItems = result ; return cb ( null ) ; } ) ; }
check if there are toolbar items required
check if there are toolbar items required