Load view according to the enabled module.

I have two custom views I post in the Twig file using the following code:

{{drupal_view (& # 39; My_custom_view_1 & # 39;)}}

Y

{{drupal_view (& # 39; My_custom_view_2 & # 39;)}}

The name of my custom module is & # 39; My_Module_1 & # 39; and & # 39; My_Module_2 & # 39;

I want to add a check in Twig that, if & # 39; My_Module_1 & # 39; is enabled, then the twig file must load the view & # 39; My_custom_view_1 & # 39 ;; otherwise, you should load the & # 39; My_custom_view_2 & # 39; view view.

Please guide how to implement this.

Thank you