Update Form/Extension/WidgetCollectionFieldTypeExtension.php

before: 
@$form->getAttribute('allow_add')
after:
$form->hasAttribute('allow_add')
Update Resources/views/flash.html.twig
Merge pull request #376 from GaYAlab/v2.0.x

Update Form/Extension/WidgetCollectionFieldTypeExtension.php