if stement to check if an array is empty code example Example: javascript how to check if array is empty if(array.length > 0)