Fix array / not array comparison