An alternative to banning them outright would be to mandate that the employee is compensated at something like 80%+ of annual pay for the agreement's duration for it to remain valid. So if McDonald's thinks their burger technology is that valuable they can pay to keep it under wraps for a while.