When comparing with == and != PHP treats null and an empty array as the same. Changed comparison to !== when comparing aliases, tags and badges to null so that an empty array can be used to clear out the aliases, tags and/or badges for a device token via the Urban Airship registration API.