Added the condition to check if the woocommerce plug-in is installed and to nullify the fatal error caused by is_woocommerce() condition when the plug-in is not installed