Merge "Fix the wrong logic to check if the element in SparseArray" into sc-dev