I’m fairly certain most employers are firmly on the side of the employees here (unless they’re already evil assholes, but you shouldn’t work for them anyway)
One thing I've envious about former Twitter employees is that they have a lot of evidence that they weren't laid off because of anything they actually did. Really helps with the "why are you leaving your current position?" kind of questions.