How did I not know that hasOwnProperty works on array indices in #javascript? huh.