add validity check to GatingSetList class. close #6