bool containsCustomObject(String name)

Source

bool containsCustomObject(String name) {
  return _containsResource("CustomObject", name);
}