When someone dies

Does believing in the afterlife make grieving worse or better?