Removed unneeded arrays. Replaced "1", "0" with literals true, false

And here