Emotion is only in the mind. You are neither happy nor sad, but beyond both of them. When you can watch the emotions and not become emotional, then you can decide with a rational mind what to do. Krishna says in the Bhagavad Gita to remain balanced and watch these emotions come and go.