#97 added isValid method to StockFilter