Fix inverted condition in get_trigger
Commit the group detail page
Check for package existence before adding