only add links if result is not empty