added checks for Random Access Iterators