theming – How to add multiple languages for hreflang

I’m trying to add multiple hreflang’s for my drupal site using the following:

$attachments('#attached')('html_head_link')(3) = array(
                                                        '0'=>
                                                                array(
                                                                        'rel' => 'alternate',
                                                                        'hreflang' => 'en-in',
                                                                        'href' => $frontpage_path),
                                                        '1' => false);

i need to be able to add additional records but it keeps picking the last record for some reason and only displays only one hreflang tag.