only render search text if result exists