Merged isinstance call