def language_exists(
        name,
        maintenance_db,
        user=None,
        host=None,
        port=None,
        password=None,
        runas=None):

    languages = language_list(
        maintenance_db, user=user, host=host,
        port=port, password=password,
        runas=runas)

    return name in languages
.. versionadded:: 2016.3.0
dataset/ETHPy150Open saltstack/salt/salt/modules/postgres.py/language_exists