Is this sentence grammatically correct?<br/><br/>"When you search books by genre and there will be no exact match for your search, the search will give you some alternatives..."<br/><br/>Or it suppose to be like this:<br/><br/>"When you search books by genre and there is no exact match for your search, the search will give you some alternatives..."<br/><br/>Are both correct?