This is probably cheaper performance-wise:

```php
array_push($atoms, $prefix . array_pop($atoms));
```