Checking if video source is empty

Checking if video source is empty

    I have 20 videos displaying onto screen. How can I check if any of the video src's tags are empty <source src="" type="video/mp4" />

    Here's my script so far

    1. $('video').children().each(function(index) {
    2. //console.log(index + " " + $(this).attr('src'));
    3. if($(this).attr('src').length == 0){
    4. console.log('hide' + index + " " + $(this).attr('src'));
    5. $('.row-5 div.col-1-5 .icon').addClass('disable');
    6. $('a.icon').removeAttr('href');
    7. $('div.vid').hide();
    8. } else {
    9. console.log('show' + index+ " " + $(this).attr('src'));
    10. $('.row-5 div.col-1-5 .icon').addClass('undisable');
    11. $('div.vid').show();
    12. }
    13. });