Add search query check