Why do you make this dummy `for`, couldn't we just test if it's undefined or null?