add links to list of post terms

Then try to add

foreach ( $arr_terms  as $terms_links ) {
    if(!empty($terms_links)) {
    echo '<a href="#">' . $terms_links . '</a>';
    }
}

That checks if the $terms_links is empty, and if so it wont print it out.