Corrected undefined|null check.