correct check resulting in `E_NOTICE`