the surface level parameter affects only the rendering of the liquid, it’s not related to the foam directly.
the foam may be affected if it forms a thin layer, in this case the surface level can change put the foam below or above the water and thus to change it’s appearance