allowing document exclusion with return undef and if defined