in my view "to the living" is incorrect in this case because after 'to' we usually use an infinitive (e.g to go, to live, to eat). and after 'if' a name or pronoun is used, so 'it is important for the living' is rather correct because after 'if' there is a name :)