Fix isEmpty assertion on variables
Fix array compare