isDemo vs AccountInfoInteger(ACCOUNT_TRADE_MODE) vs other methods

 

So when using different functions to check if an account is a demo or live acct, is there a difference between functions?  Specifically, is there a difference in how the functions check to see if account is demo?

 
This is a user's forum not Metaquotes, we can only guess. Only the broker can tell the terminal if it's a demo account, so it must be stored in a variable upon log in. Why would there be more than one method to check a variable?
Reason: