Check If Array Contains An Element Javascript Methods In Selenium