Played around with a safe indexing on ruby Arrays