Swap(#3): Added a safety check
I wanted to make sure that the indexes are in the array.
+בדיקת עברית!