def check_dir(path):
    """Check if a path exists, create if not"""
    from pathlib import Path
    if Path(path).exists():
        return True
    else:
        Path(path).mkdir(parents=True)
        return False
