check if an array has values code example Example: check if array is empty javascript array.length = []