Check If Empty Array Javascript Methods In Selenium