Minor change - casting array as immutable in situations where it's not expected to be mutated