jquery checke value is empty code example
Example: jquery if null or empty
if (jQuery('#something').val().length != ''){}
or
if (jQuery('#something').val().length != 0){}
if (jQuery('#something').val().length != ''){}
or
if (jQuery('#something').val().length != 0){}