Stopped using typeof to see if something is undefined