Checking if UA-code is set.

Adding check for checking ua-code isset.