Check if community has subcommunities

A community with subcommunities can’t be moved, therefore a check was
added.