def _check_do_option(self) -> bool:
    if (self._context['do'] != ''):
        self._do_command(self._context['do'])
        return True
    elif ((self._candidates and self._context['immediately']) or ((len(self._candidates) == 1) and self._context['immediately_1'])):
        self._do_immediately()
        return True
    return (not (self._context['empty'] or self._is_async or self._candidates))
def _check_do_option(self) -> bool:
    if (self._context['do'] != ):
        self._do_command(self._context['do'])
        return True
    elif ((self._candidates and self._context['immediately']) or ((len(self._candidates) == 1) and self._context['immediately_1'])):
        self._do_immediately()
        return True
    return (not (self._context['empty'] or self._is_async or self._candidates))