The if check in the above code will check to see if the Localytics function is supported. If the same creative is being delivered to users on multiple SDKs, this will prevent any issues from occurring for users below SDK 4.3 (but no profile attribute will be tagged for these users).