checking conditions for video audio existence in links