check for list membership before adding