getStatusCode does not work, use statusCode fix

Fixed presence[0] not working so use statusCode (provided by xml)