Good Day, I know this is kinda easy to some, but I cant understand how to access data with this kind of structure..
this was the result when I print_r($Invoice); 
and I get to access them using $Invoice->getId() for example.. ( though I dont really understand why)
now I want to check if the property exist so I could do and if else statement.
I tried using if(property_exist($Invoice,'DocNumber')){ echo "exist"; } but it seems not working.
Please help me do this things. Thanks
  QuickBooks_IPP_Object_Invoice Object
    (
        [_data:protected] => Array
            (
                [Id] => Array
                    (
                        [0] => {-183}
                    )
                [SyncToken] => Array
                    (
                        [0] => 2
                    )
                [MetaData] => Array
                    (
                        [0] => QuickBooks_IPP_Object_MetaData Object
                            (
                                [_data:protected] => Array
                                    (
                                        [CreateTime] => Array
                                            (
                                                [0] => 2017-06-21T01:16:22-07:00
                                            )
                                        [LastUpdatedTime] => Array
                                            (
                                                [0] => 2017-06-26T15:42:53-07:00
                                            )
                                    )
                            )
                    )
                [DocNumber] => Array
                    (
                        [0] => 4107
                    )
                [TxnDate] => Array
                    (
                        [0] => 2017-07-01
                    )
                [CurrencyRef] => Array
                    (
                        [0] => {-USD}
                    )
                [CurrencyRef_name] => Array
                    (
                        [0] => United States Dollar
                    )
            )
    )
 
     
    