With `centerPage`, ToolBar will never receive an empty visiblePages array. No need to check if visiblepages.length == 0