Toggles presence of element in array
Element to toggle
Source array
New array with element added or removed
Toggles presence of element in array