Extra check for dealing with nil values.