def _is_empty(db) -> bool:
    """
    Helper method to check if the level db is empty (without any records).
    :param db: The level db handler.
    :return: True if the current level db is empty.
    """
    empty = True
    with db.iterator() as it:
        for _, _ in it:
            empty = False
            break
    return empty