Global middlewares are optionally arrays
Updated comments to reflect new syntax