conditionals for empty arrays code example Example: empty array length javascript empty array check javascript