Is there a relationship between trait and state optimism and the assessment of quality of Life