Added until element exists helper.