Removing unnecessary .to_a call