The text is an idiomatic expression encouraging optimism by metaphorically comparing the positive aspects of life to the sunny side of a street or object. It does not play on different meanings of a word or similar-sounding words for a humorous effect.
Look on the sunny side of life .