The If ... else statement would be a good solution in cases if the data model has for example an empty array, then it would be possible to display an information like 'No records...' or just omit the part of the template where there is a styled table generated by loop.