Do it the other way around:

```php
if (isset($this->definitions[$className])) {
    return $this->definitions[$className];
}

// ...
```