import tarfile


def is_valid_tar(file_path: str) -> bool:
    """Check file integrity of a tar file."""
    try:
        with tarfile.open(file_path) as tfile:
            _ = tfile.getmembers()

            return True
    except tarfile.TarError:
        return False