Make the parser more efficient to test for keys rather than searching inside the array