Fred: If you can keep your head when those about you are losing theirs guess you're pretty lucky. I could kiss you both.
Fred's line alludes to the first line of the poem If... by Rudyard Kipling
"If you can keep your head when all about you
Are losing theirs and blaming it on you".
Arguably Kipling's most famous poem If... is considered inspirational and motivational and a guide to the rules of grown-up life.