undef check for attributes