def text_or_none(element, xpath):
    """If element.find(xpath) returns an element, return the .text from it;
    otherwise, return None"""
    elt = element.find(xpath)
    return elt.text if elt is not None else None