• Something like this?

    if (E !== undefined) {/*E is defined*/}
    
About