[core][bug] in Python all() sends True if the tested list is empty