import pathlib


def check_file_exist_by_pathlib(path: str = ""):
    """
    Check if the file exists

    :param path: Path to file
    :return: Boolean indicating if the file exist
    """
    # Create path lib object.
    pl = pathlib.Path(path)
    # Check whether the path lib exist or not.
    ret = pl.exists()
    return ret