added  now you can check if the template has any data passed