This will work functionally, but it's clearer to use the length of the array. Others who look at the code could think that result[0] is something special.