Add new ecom_active() function for a universal way to see if ecom is active before ECOM is set in main index.php (e.g. install/upgrade), and updates renderAction() comments