You're guaranteed that the positions are there so size is `positions / 3`. You don't need to check for the other attributes.