def METHOD_NAME(job_name: str, remote: bool=False) -> bool:
    """Check if file exists locally or in the Google storage bucket.
    Args:
        job_name (str): File name.
        remote (bool, optional): Flag that indicates whether to check the Google storage bucket. 
                                 Defaults to False.
    Returns:
        bool: True, if the job file exists, False otherwise.
    """
    if remote == False:
        local_job_path = jobs_dir / "{}".format(job_name)
        return local_job_path.exists()
    else:
        storage_client = storage.Client()
        bucket = storage_client.bucket(bucket_name)
        remote_job_path = 'jobs/{}'.format(job_name)
        job_blob = bucket.blob(remote_job_path)
        return job_blob.exists()