stats: avoid linear search for empty entry