This will break with PHP version < 5.4.

Please use the 'old' way to do this:

```
 $page = explode('/',$name)[0];
 $page = $page[0];
```