What do `eval()` here? This would be much better if the caller passed in a function that returns a Boolean.