Using the LiveAPI is there a way to determine if a non-existent function is called?

    Oct 25 2020 | 3:19 am
    In code if I do the following: var apiObj = new LiveAPI('live_set')'aget_current_smpte_song_time', 1)
    I see in the Max console:
    Is there a way to check (from the code) that I can call that function? That is, or the attribute exists?
    Or, can is there a way to check that the return value is an error? Typically I would use try...catch for this but it does not seem to work here.