https://tutorial.eyehunts.com/js/javascript-if-not-empty-example-code/
JavaScript if not empty | Example code