https://tutorial.eyehunts.com/js/javascript-check-if-variable-has-value/
JavaScript check if variable has value