from pathlib import Path


def is_empty(path: Path) -> bool:
    """Checks if a directory has files

    Args:
        path: The path to the directory to check

    Returns:
        bool: True if the dir is empty, False if it contains any files
    """
    return not any(path.iterdir())