is this container empty or not, checks both cargo and attachments
См. определение в файле 3_Game/Entities/EntityAI.c строка 648
Перекрестные ссылки GetInventory() и HasAnyCargo().