Returns true if this collection has an element at the given idx.
idx
bool isDefinedAt(int idx) => 0 <= idx && idx < size;