wouldn't it be better that way to assign the matched part to a self-explanatory variable and use it later?

```php
if (!empty($matches[5])) {
                $redis->select(intval($matches[5]));
            }
```

is an alternative but is not very obvious.

what do you think?