How to shorten the Expression of an Array?

@alienationfreez, it seems like you are using the if-statement. You should be able to learn more about the same here: