Got a better one, probably:

```php
list($parentName, $childName) = explode('/', 'foo/bar', 2) + [1 => null];
```