range check; convert iterable to list, otherwise [] throws