Array not initialized, rework static var check to be simpler to read