Would be better to call this 'type' because this is what it is. You should also don't rely on that the $containerKey already contains a trailing slash. This will be a common source of errors. Instead, add the slash yourself and the key should be without trailing slash