Sitcoms are more than a bit of entertainment and the writing tells it