[FIX] don't break on empty list