verify mention, url and media arrays are not empty before iterating