getStatusCode does not work, use statusCode fix

Fixed presence[0] not working so use statusCode (provided by xml)
Merge pull request #1 from gadlol/patch-1

getStatusCode does not work, use statusCode fix