hash: check for resize before insertion