Since there's only one element in this array, can this be collapsed to an `if` statement?