def is_valid_sentence(sentence):
    """ Check whether sentence references other sentence, which makes it invalid """
    sid = sentence.attrib['id']
    for node in sentence.iterfind('.//*[@idref]'):
        idref = node.attrib['idref']
        if sid not in idref:
            # Skipping sentence, as it references different sentence
            return False

    return True