set hash to null vs undefined if there is no hash