Can't modify array dereference in logical or assignment (||=)