check for valid selection for `type`