I have this piece of twinbasic code in a function: 

If args(msg, inhibitNext).anyGiven Then Return Null

It goes through a class thats supposed to make handling arguments easy, in this case it should return if any of the given list of args was made. ive confirmed that at the time of this check, no args were made, the IDE shows both variables as missing at that time, yet the function returns true which it shouldnt.

I will provide the class, but ive traced it down to here:
    Function notMissing(argument As Variant) As Boolean
        Return Not IsMissing(argument)
    End Function

This just basically a reversal of the IsMissing function the language has....if i  inspect the variable Argument at runtime it says missing....and yet IsMissing returns false....leading to the function returning True, i dont get it. Ive done a seperate check to see if  you can defer IsMissing calls like that and it worked there....

Here is the class:
Module mArgHelper
    
    Public Function arg(argument As Variant) As ArgHelper
        Dim helper As ArgHelper = New ArgHelper
        helper.[__val__] = argument
        Return helper
    End Function
    
    Public Function args(ParamArray Arguments()) As ArgsHelper
        Dim helper As ArgsHelper = New ArgsHelper
        helper.[__args__]() = Arguments()
        Return helper
    End Function
    
    Function missing(arg As Variant) As Boolean
        Return IsMissing(arg)
    End Function
    
    Function notMissing(argument As Variant) As Boolean
        Return Not IsMissing(argument)
    End Function
    
    
        
End Module

Class ArgsHelper
    Public __args__() As Variant
    
    
    Private Property Get min() As Long
        Return LBound(__args__)
    End Property
    
        Private Property Get max() As Long
            Return UBound(__args__)
        End Property
    
        
                
    
    
     'HELPERS       
            
    Function allGiven() As Boolean
        For i = min To max
    
            If IsMissing(__args__(i)) Then Return False
        
        Next i
        
        Return True
    End Function

    Function allMissing() As Boolean
        For i = min To max
    
            If notMissing(__args__(i)) Then Return False
        
        Next i
        
        Return True
    End Function


    Function anyMissing() As Boolean
        For i = min To max
    
            If IsMissing(__args__(i)) Then Return True
        
        Next i
        
        Return False
    End Function

    Function anyGiven() As Boolean
        For i = min To max
    
            If notMissing(__args__(i)) Then Return True
        
        Next i
        
        Return False
    End Function
    
    Function noneMissing() As Boolean
        
        For i = min To max
    
            If IsMissing(__args__(i)) Then Return False
        
        Next i
        
        Return True
        
    End Function
    
    Function numberMissing() As Long
        Dim count As Long, i As Long
        For i = min To max
    
            If IsMissing(__args__(i)) Then count += 1
        
        Next i
        
        Return count
        
    End Function
    
    Function numberGiven() As Long
        Dim count As Long, i As Long
        For i = min To max
    
            If notMissing(__args__(i)) Then count += 1
        
        Next i
        
        Return count
        
    End Function
        
    
    
    
    
End Class

Class ArgHelper
    Public __val__ As Variant
    
    Function missing() As Boolean
        Return VBA.IsMissing(__val__)
    End Function
    
    Function given() As Boolean
        Return Not VBA.IsMissing(__val__)
    End Function
    
    Function notMissing() As Boolean
        Return Not VBA.IsMissing(__val__)
    End Function
    
        Function empty() As Boolean
            Return VBA.IsEmpty(__val__)
        End Function
        
        Function notEmpty() As Boolean
            Return Not VBA.IsEmpty(__val__)
        End Function
    
            Function null() As Boolean
                Return VBA.IsNull(__val__)()
            End Function
            
            Function notNull() As Boolean
                Return Not VBA.IsNull(__val__)
            End Function
    
                Function isNumeric() As Boolean
                    Return Not VBA.IsNumeric(__val__)()
                End Function
                
                Function notNumeric() As Boolean
                    Return VBA.IsNull(__val__)()
                End Function
                
                    Function isObject() As Boolean
                        Return Not VBA.IsObject(__val__)()
                    End Function
                    
                    Function notObject() As Boolean
                        Return Not VBA.IsObject(__val__)()
                    End Function
    
    
End Class

Module testReferMissing
   
    Sub bla()
        
        '✅WORKS....so whats thhe problem
        Missing1()
        
    
    End Sub

    Sub Missing1(Optional val)
        
        Missing2(val)
        
    End Sub
    
    Sub Missing2(Optional val)
        
        Missing3(val)
        
    End Sub
    
    Sub Missing3(Optional val)
        
        If IsMissing(val) Then Debug.Print "is indeed missing" Else Debug.Print "nah it's here somehow"
        
    End Sub
    
End Module