There is a way to create custom filters in Volt. But where the code goes exactly? Into the config file (index.php)?
Sample code:
$compiler = $volt->getCompiler();
$compiler->addFilter('isArray', function($resolvedArgs) {
return 'is_array('.$resolvedArgs.')';
});