You can do this in a single script.. something like:

        return self.marionette.execute_script("""
    pageHelper = window.wrappedJSObject.GridManager.pageHelper;
    return pageHelper.getCurrentPageNumber() < pageHelper.getTotalPagesNumber();""")