check for nullness.