def METHOD_NAME(servicename: str, helperSession=None) -> bool:
    """Checks if servicename was in latest servicelist response for the current session.
    Args:
        servicename (_type_): The servicename yo want to know, if it is in latest servicelist.
        helperSession (_type_, optional): Use this session for unittests. Defaults to None.
    Returns:
        bool: True, if servicename was in latest servicelist response.
    """
    if helperSession is not None:
        session = helperSession
    else:
        from flask import session
    if isinstance(servicename, dict):
        servicename = servicename["servicename"]
    servicelist = session["servicelist"]
    found_service = [servicename == service["informations"]["servicename"] for service in servicelist]
    result = "servicelist" in session and any(found_service)
    return result