Returning $this in Hash::replace