from pathlib import Path


def is_directory_empty(dir_path: Path) -> bool:
    """Check if a directory is empty.

    Args:
        dir_path (Path): path to directory

    Returns:
        bool: True if empty, False otherwise
    """
    assert (
        dir_path.exists()
    ), f"The provided directory does not exist: '{dir_path}'."
    assert dir_path.is_dir(), f"Provide a directory path, not '{dir_path}'."
    return not any(Path(dir_path).iterdir())