CodePen

HTML

            
              <ul>

</ul>  
            
          
!

CSS

            
              
            
          
!

JavaScript

            
              if( !$("ul").has("li").length ) {
	  $("ul").html("Sorry, this is empty");
}
            
          
!
999px
Loading ..................