Check that selection is not null