This is not a big deal, but this line can be simplified as:
```php
$ran = in_array($revision, $this->existing_revisions);
```
`in_array()` already returns a boolean value, you don't need to compare it to `true`