checking for lastvisittime not in history item