check empty before submitting search