Effect of hopelessness on the links between psychiatric symptoms and suicidality in a vulnerable population at risk of suicide