You duplicate some `undefined` checks here. Check if `attributes`, `attributes.position` and `attributes.position.values` are defined.