Also guard against nil values.