This function should probably be called "checkAddToHashTable" - checkDoRehash is really describing part of what it does, rather than why it is here.  It would make the call more logical.  Not v. significant.