One line instead of four (135-138):

    return isIPv6(resu):