It seems to be better to do this only in the else branch. In the future, almost every sitelink will be stored in the first format, so we can safe the effort to look for a string in each case.