def _has_system_frames(frames):
    """
    Determines whether there are any frames in the stacktrace with in_app=false.
    """

    system_frames = 0
    for frame in frames:
        if not frame.get("in_app"):
            system_frames += 1
    return bool(system_frames) and len(frames) != system_frames