you can use <code>t.empty()</code> instead of <code>t.size() == 0</code> here.