def is_valid_pathway_by_id(manager_dict, resource, pathway_id):
    """Check if pathway identifier exists in pathway database.

    :param dict manager_dict: manager name to manager instances dictionary
    :param str resource: resource name
    :param str pathway_id: pathway identifier
    :rtype: bool
    """
    pathway = manager_dict[resource].get_pathway_by_id(pathway_id)

    if not pathway:
        return False

    return True