Double If statement for Toggle functions

I created 2 Toggle groups with 3 checkboxes each one,i am trying to check the 2 checkboxes selected and do something then.If i am checking just 1 Toggle it works.

 public void ActiveToggle()
    {
        if (Man_4Days.isOn && Man_Basic.isOn)//Not working
        {
            Debug.Log("4 days selected");
            ToggleMenu.SetActive(false);

        }
        else if (Man_5Days.isOn) // Working
        {
            Debug.Log("5 days selected");
        }
        else if (Man_6Days.isOn)
        {
            Debug.Log("5 days selected");
        }
    }
NullReferenceException: Object reference not set to an instance of an object
ManSelected_Levels.ActiveToggle () (at Assets/ManSelected_Levels.cs:21)
ManSelected_Levels.OnSubmit () (at Assets/ManSelected_Levels.cs:40)
UnityEngine.Events.InvokableCall.Invoke (System.Object[] args) (at C:/buildslave/unity/build/Runtime/Export/UnityEvent.cs:154)
UnityEngine.Events.InvokableCallList.Invoke (System.Object[] parameters) (at C:/buildslave/unity/build/Runtime/Export/UnityEvent.cs:637)
UnityEngine.Events.UnityEventBase.Invoke (System.Object[] parameters) (at C:/buildslave/unity/build/Runtime/Export/UnityEvent.cs:773)
UnityEngine.Events.UnityEvent.Invoke () (at C:/buildslave/unity/build/Runtime/Export/UnityEvent_0.cs:52)
UnityEngine.UI.Button.Press () (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Button.cs:35)
UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Button.cs:44)
UnityEngine.EventSystems.ExecuteEvents.Execute (IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/EventSystem/ExecuteEvents.cs:50)
UnityEngine.EventSystems.ExecuteEvents.Execute[IPointerClickHandler] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.EventFunction`1 functor) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/EventSystem/ExecuteEvents.cs:261)
UnityEngine.EventSystems.EventSystem:Update()

This error appears on unity console when i call ActiveToggle,if the line it`s without the second check,its working.

Look at the error. It says reference/variable is not set.
Which basically means one of your variables is null.

This should be easy to find with the debugger. Or if only clicking one option causes it to fail you should be able to track it down that way.

Either way looks like you only have 5 variables to check.