https://infinitbility.github.io/how-to-check-array-contains-value-in-javascript/
How to check array contains value in javascript