Hmm, i guess a database will treat undefined as null. I'm not sure, let's keep the existing check for now.