should be `$this->ignoreInvalidIndices = !$throwExceptionOnInvalidIndex;`, no?