public static function typeExists($name) { return new self("Cannot add type with name '" . $name . "', it already exists."); }