why wouldn't we set pavlovoptions if it is an empty hash? Seems like a silly optimization? (realizing this came from elsewhere, but this code is quite complex imho, but it really needn't be.