fix(parser): Replace a try/catch with 'value is Map' for performance.