added an extra check on the size of the dropout params list