check if $t is an array

Additional is_array check for phone number type, because when using a user defined type for a phone number, $t is not an array so empty($t['Type']) will raise an error and the number will not be imported.