Handling the try/catch and if/else hell | Hacker News Reader