You can use something like this in a snippet to get the value from the document being rendered:
all I ask is:
What code do I have to put into my snippet to check if the current document is a container? As for use in an if-construct...
if ($modx->documentObject['isfolder']) {
// Do your stuff
}