In JavaScript, it's quick normal to use operators this way. I'm happy to change this if you think the other fits better to the style used in Symfony.