check if time exists