This includes not throwing a custom exception and using the length_of_array_like abstract operation where required.