from pathlib import Path


def exists(path) -> bool:
    """
    Check path or file exists (use os.path.exists)

    Args:
        path: path or file
    """
    if not path: return False
    return Path(path).is_dir() or Path(path).is_file()