validate() public method

Validates the form It checks if there is a value when a checkbox is checked
public validate ( )
 /**
  * Checks if the form is valid
  *
  * @return bool
  */
 private function isValid()
 {
     $fields = $this->form->getFields();
     $fields['name']->isFilled(Language::err('FieldIsRequired'));
     $fields['description']->isFilled(Language::err('FieldIsRequired'));
     $this->meta->validate();
     return $this->form->isCorrect();
 }