changed comparison with null to !== to fix jshint error