You can still be seriously injured in a foam pit. One of the biggest problems with pits is that kids assume they can't get hurt.
Having said that foam pits are easier, they do provide and easier landing and kids get in and out of the, with a lot more ease. You can also do more with them. But air bags are far more hygienic.