Check that there is data in the list before attempting to access the index. Closes #47.
Old models are cleared upon opening a file. Closes #28