Extensions to the Array class
This method returns a given element from the array, deleting it from the array itself. The method returns nil if the element couldn‘t be found.
If nil is specified, a random element is returned and deleted.
This method returns a random element from the array, or nil if the array is empty
[Validate]