checkIsIndexValid

private fun checkIsIndexValid(): Boolean