<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _grab_xpath(root, xpath, converter=lambda x: x):
 """ XML convenience - grabs the first element at xpath if present, else returns None. """

    elements = root.xpath(xpath)
    if elements:
        return converter(str(elements[0]))
    else:
        return None