Check source for undef instead of empty