protected function checkCorrectedFormat($obj) { if (isset($obj->name) && $obj->name) { $this->correct = true; } }