Project PR

you may reverse your logic here so you don't need to add the else part
```php
$params = array('level' => $this->level);
if ($this->updated() {
    $params = array(
        'level' => $this->level,
        'updated' => date('Y-m-d H:i:s')
    );
}
```