check if selection is valid (not only if it came from a widget)