public function setErrors($errors) { if (!empty($errors)) { $this->errors = $errors; $this->successful = false; } }