If String Not In Array Javascript Methods In Selenium