Then she would get no money either.
And some aspects of the agreement would be fine. No spilling actual business relevant secrets, nothing that would count as libel or slander, etc.
Companies don't need to offer severance to prevent ex employees from spilling business secrets, doing so is a criminal offense.