stop iteration if appElement is truthly