using proper variable for instance checking (twilio#161)