Empty arrays are true but they\'re also equal to false.
You can empty a JavaScript Array by referencing it to a new array, using list = [] or deleting the elements of the currently referenced array list.length = 0.
list = []
list.length = 0
Source: JavaScript Empty Array