Use isinstance