isLatest() is now inside a try-catch block