Added check to confirm there are entries in file.