What should happen if indexes is NULL? Raise an exception?