bool containsBitmapData(String name)

Source

bool containsBitmapData(String name) {
  return _containsResource("BitmapData", name);
}