JavaScript bukan array kosong bukan string
if (Array.isArray(array) && array.length) {
// array exists and is not empty
}
crawlingcity
if (Array.isArray(array) && array.length) {
// array exists and is not empty
}