Hrm, perhaps I am missing your point. But again, here the waiting is to trap the error specific for elements no in the dom. Perhaps if waitFor itself trapped errors, and treated them as returning false we could eliminate some of this boiler plate. But I'm not even sure you'd always want waitFor to do that..