Add canMerge function to table API