typeOf will return 'null' if not found - note its a mootools method not the standard Js typeof method, so it behaves a bit differently