Remove cases where an array is used in a boolean context