undefined check uses typeof now