GroupFocus conditional link for no results

I have a repeating group embedded in a groupfocus element. Within the repeating group is dynamic links pulling from the database based on input text from the user (searching names in the database). When text is input, the groupfocus pops up, but if there are no results (no match in the database) all I see is a blank box which is confusing to people.

How do i make the link conditional so that if no search results appear the link changes to custom text saying “no search results”?

thx in advance for any help!