Fix E_NOTICE when  undefined