ShouldDisplay() for Unpublish and conditional display of groups

I've added logic to only display the unpublish option if the versioned record has been published, and as that left an empty group, also added logic to only show a group button if it has children.