can't these four lines just be replaced with this one line:
jabber_configured = hasattr(settings, 'JABBER_DOMAIN')