Returns False if the template has invalid placeholders that will cause substitute() to raise ValueError.
string/Template.is_valid
Template.is_valid