Correcting null check.