I would say grief works uniquely in everyone who grieves.
If someone feels comforted in praying for or to their departed love one, of that helps them heal their broken heart, comforts them in any way, all is well in that.
Because while we're told the dead know nothing,those they leave behind...