Can we use `end($this->errors)` instead of `$this->errors[count($this->errors) - 1]`?