def METHOD_NAME(value: StreamState) -> bool:
    if not value:
        return False
    try:
        # Verify datetime format in history
        history = value.get("history", {}).keys()
        if history:
            item = list(value.get("history", {}).keys())[0]
            datetime.strptime(item, Cursor._DATE_FORMAT)
        # verify the format of the last_modified cursor
        last_modified_at_cursor = value.get(DefaultFileBasedCursor.CURSOR_FIELD)
        if not last_modified_at_cursor:
            return False
        datetime.strptime(last_modified_at_cursor, Cursor._LEGACY_DATE_TIME_FORMAT)
    except ValueError:
        return False
    return True