Do not return html if data property is empty