 getPhoneNumber = (data) ->
     listPhones = []
 
-    data.phone_numbers.forEach (number) ->
+    data.phone_numbers?.forEach (number) ->
         listPhones.push
             name: 'tel'
             type: number.type.toLowerCase()

        #region = segmentAddress[1] || ''
        #locality = segmentAddress[2] || ''

    data.addresses.forEach (address) =>
        addressArray = ContactHelper.adrStringToArray address.raw
        addressArray[6] = country


            finalContact = new Contact
                n: "#{data.last_name};#{data.first_name}"
                fn: data.name
                title: data.title || undefined
                org: data.company?.name || undefined
                title: data.title || undefined
                tags: ['linkedin']
                datapoints: datapoints || undefined

            console.log data
            finalContact.imageUrl = data.secure_profile_image_url || undefined
            ContactHelper.setAccount finalContact,
                type: ACCOUNT_TYPE
                name: entries.accountName
