Why added, if (!elem) af if(hint) block covered both cases before..