Source: https://stackoverflow.com/questions/13509669/find-out-if-a-variable-is-in-an-array