I did not change it as I wanted to be consistent with @dpobel code who is a origin author here. He might explain better why he used sameas http://twig.sensiolabs.org/doc/tests/sameas.html I can suspect that type checking was a case here for boolean value, as developer might pass a string value like {'showMap': 'true'}. Do you want to change every block now in this template for what you wrote?