Isn't this just 0 != len(keys) ?  vLenBefore is always set to v.Len() if you get this far.