try() catch() duplication