Create check_existence.js

@see http://stackoverflow.com/questions/2703102/typeof-undefined-vs-null