Same as elementAt but if the index is higher than the length returns null
E? elementAtSafe(int index) { if (index >= length) { return null; } return elementAt(index); }