bool containsText(String name)

Source

bool containsText(String name) {
  return _containsResource("Text", name);
}