fixed array != [] bug