check filled query in search