https://tutorial.eyehunts.com/js/javascript-isnull-how-to-check-for-null/
JavaScript isNull | How to Check for null