Update hash

Include null checks for merging