Checking for null, undefined, and empty values in JavaScript | CodeTrail