Retrieve array value by index with default