How to check if a function is Type instance? - arktype