const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse()) const elem = document.querySelector('.elem') if(!elem) console.error('elem cannot be found!') const returnValue = functionThatDoesSomethingWithElem(elem) if(!returnValue.success) console.error('Doing something with elem has failed!') if(!returnValue.doSomethingElse())