Some input validation: check for being passed undefined.