Corrected null check condition.