myTBody2 += `<tr>`;
// check if href is not empty string:
if(data._links.first.href.length){
myTBody2 += `<td><button class="btn btn-sm btn-primary" onclick="myFetcher('${data._links.first.href}')">First</button></td>`
}
//...same for the others..
myTBody2 += `</tr>`;