It really is contagious:

Why it is hard to keep a straight face: “If you meet someone who looks angry or happy, it is often hard to remain expressionless yourself – and now scientists believe they know why.

Researchers in Sweden believe your unconscious mind exerts direct control of your facial muscles.

However much you struggle to keep a blank face, your brain may be letting you down.” BBC