Refactor: abstracted array access into get square methods