The presence of white foam in the vomit indicates the contents of the stomach were sloshed around before being expelled or that the stomach was empty. It is also a possible sign of pancreatitis, which needs to be taken seriously.