function to shorten null/undef validation for #2753
function to shorten null/undef validation for #2753

gijsleussink/ceylon,gijsleussink/ceylon,gijsleussink/ceylon,gijsleussink/ceylon,gijsleussink/ceylon