https://tutorial.eyehunts.com/js/javascript-checks-undefined-or-null-or-empty/
JavaScript checks undefined or null or empty