this could be done in a more elegant manner with the Array.filter function. The name of the function could be more explicit filterTel4Activity or something like that.