def _is_domain_available(handle, domain_id):
    """
    This internal method returns True if domain is available currently
    else returns False

    Args:
        handle (UcscHandle): UcsCentral Connection handle
        domain_id(str): ID of domain from domain object

    Returns:
        True or False depending on domain's availability

    Example:
        _is_domain_available(handle, domain_id="1008")
    """

    extpol_client_dn = "extpol/reg/clients/client-" + domain_id
    extpol_client = handle.query_dn(extpol_client_dn)

    if (extpol_client and (extpol_client.oper_state == "registered")):
        return True

    return False