Cleans array right depending on opposite boolean