Update return first open number in an array