Based on our IRC conversation, maybe we should assert data.size() > 0.