Kinda very minor, but does this variable serve any purpose? Why not just put the condition `$content_model == 'islandora:collectionCModel'` into the `if` directly?