Sentence:  A man with insomnia had better avoid bad dreams of that kind if he knew what <WSD>was</WSD> good for him . 
Meaning of the word marked with <WSD> tags:  have the quality of being; (copula, used with an adjective or a predicate noun)