You can move the whole array creation inside this or actually, invert the block and break.