Shouldn't you check that there is only one arch otherwise you're arbitrarily picking the first of many.