Check that file is not empty before populating

When there are no records in data file for a model (just in case you don't need any), it will throw an error