'Do we have cached metadata for this SAML provider?'

def has_data(self, inst):

    if (not inst.is_active):
        return None
    data = SAMLProviderData.current(inst.entity_id)
    return bool((data and data.is_valid()))
