def project_with_revision_exists(project_name, project_revision, working_dir):
    """Check if a Quartus project with the given name and revision exists.

    Parameters
    ----------
    project_name : str
        Name of the Quartus project
    project_revision : str
        Name of the project revision
    working_dir : str
        Directory to check for the Quartus project

    Returns
    -------
    bool
        True if a project is found with the given name and revision, false otherwise.
    """
    try:
        with open(working_dir + project_name + ".qpf", "r") as project_file:
            for line in project_file:
                if f"PROJECT_REVISION = \"{project_revision}\"" in line:
                    return True
            return False
    except FileNotFoundError:
        return False