not 	`if (empty($content['folders'])) {`
Then it won't set it for the other `$content` keys
I would prefer doing this right after defining $linkUrl, no code repetition there too, but then you know for sure all links always get the prefix