public static <T> T first(final Iterable<T> iterable) {
        return get(iterable, 0);
    }
retrieves the idx's element of the given iterable, or null if iterable doesn't have enough elements
main/src/main/java/cgeo/geocaching/utils/CommonUtils.java