def in_domain(domain, x):
    """
    Check if x is in domain

    Parameters
    ----------
    :param domain: (gpflowopt) domain
    :param x: data

    Returns
    -------
    :return: True is x is in domain, False otherwise
    """
    return x in domain