PMC embargo date testing is done in function is_embargoed which is called earlier because when the citation has |pmc=<value> but does not have a |url= then |title= is linked with the PMC link. Function is_embargoed returns the embargo date if the PMC article is still embargoed, otherwise it returns an empty string.