I would check this first, thus avoiding a condition:

```php
if ($record['level'] >= $this->emergencyLevel) { 
    $dataArray['priority'] = 2;
} elseif ($record['level'] >= $this->highPriorityLevel) {
    $dataArray['priority'] = 1;
}