Dispositional optimism as a moderator of the relationship between negative life events and suicide ideation and attempts