public static function validateData(Nette\Forms\IControl $control) { return strlen($control->code) && !is_int($control->code) && $control->isIcoValid($control->ico); }