def METHOD_NAME(self, branch=None):
    """Check if we need an update."""
    checkversion = CheckVersion()
    if branch:
        checkversion.updater.branch = branch
    if checkversion.updater.need_update():
        return True
    else:
        ui.notifications.message('No updated needed{branch}'.format(
            branch=' for branch {0}'.format(branch) if branch else ''
        ), 'Check logs for more information.')