from pathlib import Path


def ready_for_postinstall(chroot):
    """True if the chroot path exists and nothing mounted inside, False otherwise"""
    path = Path(chroot)
    return path.exists() and not any(path.iterdir())