Making the table and the error message display in the search page dynamically

The table is displayed in the search page only when the result collection length is greater than 0. Else a text saying Book Not Found is displayed