Validation can be added but are you sure that we have validation for cases as well while creating a CCMenuItemToggle object? 

I didn't find any.

Check the method body of:
```
bool CCMenuItemToggle::initWithTarget(CCObject* target, SEL_MenuHandler selector, CCMenuItem* item, va_list args)
```
and 
```
CCMenuItemToggle * CCMenuItemToggle::createWithTarget(CCObject* target, SEL_MenuHandler selector, CCMenuItem* item, ...)
```