Javascript If Array Is Not Empty Sql Practice Leetcode 75