bool hasMetafield(String fieldName) { return metatable != null && metatable!.get(fieldName) != null; }