Resolve aliases and titles

I store contacts in my notes, and often there will be multiple names for a single person. I store these under alias values. I’d like to be able to check if a link can resolve via the API. I know I could determine this by iterating over all the files that match the tag and checking each alias individually, but is there a faster way to do this using metadatacache? Some form of getFirstLinkpathDest that works with aliases?