function(unit) if UnitExists(unit) and UnitHasIncomingResurrection(unit) then return "Pending" else return "not pending" endend