instanceof undefined is unhappy