def check_for_initial_powerflow(controllers):
    """
    Function checking if any of the controllers need an initial power flow
    If net has no controllers, an initial power flow is done by default
    """

    if not len(controllers[0]):
        return True

    for order in controllers:
        for ctrl in order:
            if ctrl.initial_powerflow:
                return True
    return False