A conditional snippet for MODx Revolution