public function ensureContentTypeDoesntExist($identifier) { $contentType = $this->loadContentTypeByIdentifier($identifier, false); if ($contentType) { $this->removeContentType($contentType); } }