Returns false if the template has invalid placeholders that will cause substitute() to raise ValueError.
is_valid()