check undefine in index