check if selection contains objects (otherwise it is "invalid")