Few fixes

Found a few issues, I can't fully test it, but I can show you what I was doing to cause the errors that I've fixed.

            $sid = $this->container->getParameter('twilio.sid');
            $token = $this->container->getParameter('twilio.token');

            $twilio = new Twilio\Twilio($sid, $token);

            $response = $twilio->account->applications;
            
            $ApplicationSid = null;
            
            //$apps = $applications->getIterator();
            foreach($response as $application) {
                var_dump($application);
            }