Add a warning / setting / option to protect the PHPP from 'overwriting' existing cell values.
For example, something like:
import system.windows.Forms as WinForms
confirm = WinForms.MessageBox.Show(
"Overwrite Existing PHPP Values?",
WinForms.MessageBoxButtons.YesNo,
winForms.MessageBoxIcon.warning,
)
if confirm == WinForms.DialogResult.Yes:
# Write to PHPP...
...
or: add a setting to the Grasshopper Component?